package com.iwunu.gateway.service;

import java.util.List;

import com.iwunu.gateway.entity.CmdIssued;
import com.iwunu.gateway.vo.CmdIssuedVo;

public interface CmdIssuedMongodbService {
	String saveSendImageData(List<CmdIssuedVo> cmdissueds,String userId,String clientId,Integer type,Integer role);
	String saveSendAdvertData(List<CmdIssuedVo> cmdissueds,String userId,String clientId,Integer type,Integer role);
	Integer saveBleSendImageData(CmdIssuedVo cmdissueds,String clientId,Integer type);
	CmdIssued  getExitBleSendCmdByData(String clientId,Integer type,String data);
	CmdIssued  getBleSendCmdByData(String clientId,Integer type,Integer pitNum);
	void updateCmd(String clientId,Integer pitNum,Integer type);
	void removeCmd(String clientId,Integer pitNum,Integer type);
	void updateBleCmd(CmdIssued cmdIssued);
	void removeCmdByDeviceId(String clientId);
	long updateStatus(String clientId);
	List<CmdIssued>  getSendCmd(String clientId, String type);
	List<CmdIssued>  getSendCmdByUser(Integer userId,String clientId);
	List<CmdIssued>  getUserSendCmd(Integer userId, String clientId, Integer type);
	List<CmdIssued>  getSendCmdByOwner(String clientId,Integer userId) ;
	List<CmdIssued>  getSendCmd(String clientId,Integer userId);
}
